home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / dbkit / types.h < prev   
Text File  |  1994-05-16  |  755b  |  33 lines

  1. /*
  2. **      types.h
  3. **      Database Kit, Release 3.0
  4. **      Copyright (c) 1992, NeXT Computer, Inc.  All rights reserved. 
  5. */
  6.  
  7.  
  8. #import <objc/objc.h>
  9.  
  10. /*
  11. ** DBTypes is a grouping of an expression type, an objective-C type, and
  12. **  (optionally) the type that this object had in the database.
  13. **
  14. ** The objcType is how the value of the object is actually stored (and coerced,
  15. **  if necessary).  The databaseTypeName is a string that represents the
  16. **  type that the object has in the database; an example might be "Number".
  17. **  The databaseType is completely adaptor dependent.
  18. **
  19. */
  20.  
  21. @protocol DBTypes
  22.  
  23. - (const char*)objcType;
  24. - (const char*)objcClassName;
  25. - (const char*)databaseType;
  26.  
  27. - (BOOL)matchesType:(id<DBTypes>)aType;
  28.  
  29. - (BOOL)isEntity;
  30.  
  31. @end
  32.  
  33.